//
//  TFMessageViewController.swift
//  weiboSina
//
//  Created by admin on 15/12/26.
//  Copyright © 2015年 admin. All rights reserved.
//

import UIKit

class TFMessageViewController: TFVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // 判断是否有登录
        if userLogon == false {
            // 设置内容
            visitorView.setupInfo("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            // 如果没有登录，下面的逻辑就不执行
            return
        }
        
        
        setupUI()
    }

    ///设置视图
    private func setupUI(){
//    navigationItem.rightBarButtonItem = UIBarButtonItem(title: "发现群", style: .Plain, target: self, action: "findGroup")
    navigationItem.rightBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: "findGroup")
     }
    //发现圈点击
   @objc private func findGroup(){
    
    let vc = TFTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    
    }
    
 }



